import { createRouter, createWebHashHistory } from 'vue-router'
import film from "./routes/film"


const routes = [
  film,
  {
    path: '/',
    redirect: "/film/nowplaying",
  },  
  {
    path: "/film/:filmid",
    component: () => import("@/views/Detail.vue"),
  },
  {
    path: "/zixun",
    component:()=>import("@/views/Zixun.vue")
  },
  {
    path:'/zixun/:id',
    component:()=>import("@/views/NewsInfo.vue")
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
